projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8944493
)
GdkWin32: Add code for gtk-overlay-scrolling setting
author
Luca Bacci
<luca.bacci982@gmail.com>
Fri, 17 Jun 2022 08:55:21 +0000
(10:55 +0200)
committer
Luca Bacci
<luca.bacci982@gmail.com>
Fri, 17 Jun 2022 09:06:43 +0000
(11:06 +0200)
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/4899
gdk/win32/gdkproperty-win32.c
patch
|
blob
|
history
diff --git
a/gdk/win32/gdkproperty-win32.c
b/gdk/win32/gdkproperty-win32.c
index 0cbd3f00950df26fc8f80bd7fecda9b7a1576ee6..f919e53e9ccb88dfb68df5d876f211b92cb1d781 100644
(file)
--- a/
gdk/win32/gdkproperty-win32.c
+++ b/
gdk/win32/gdkproperty-win32.c
@@
-220,6
+220,19
@@
_gdk_win32_get_setting (const char *name,
return TRUE;
}
+ else if (strcmp ("gtk-overlay-scrolling", name) == 0)
+ {
+ DWORD val = 0;
+ DWORD sz = sizeof (val);
+ LSTATUS ret = 0;
+
+ ret = RegGetValueW (HKEY_CURRENT_USER, L"Control Panel\\Accessibility", L"DynamicScrollbars", RRF_RT_DWORD, NULL, &val, &sz);
+ if (ret == ERROR_SUCCESS)
+ {
+ g_value_set_boolean (value, val != 0);
+ return TRUE;
+ }
+ }
return FALSE;
}